package Com.CXSH.Guanwan.Mapper;


import Com.CXSH.Guanwan.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user")
    List<User> list();

    @Select("select * from user limit #{startNumber}, #{endNumber}")
    List<User> pageList(@Param("startNumber") int startNumber, @Param("endNumber") int endNumber);

    @Select("select count(1) from user")
    Integer pageCount();
}
